# == Schema Information
#
# Table name: designer_promotions
#
#  id           :integer          not null, primary key
#  title        :string
#  content      :text
#  main_img     :string
#  publish_time :datetime
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#  deleted_at   :datetime
#  summary      :string
#

class DesignerPromotion < ApplicationRecord
  include ActsAsParanoidConcern

  validates :title, presence: { message: '标题不能为空' }
  validates :content, presence: { message: '正文不能为空' }
  validates :publish_time, presence: { message: '活动时间不能为空' }

end
